<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/15
  Time: 22:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>网上书店</title>
    <script type="text/javascript" src="../../resources/js/jquery-2.2.1.js"></script>
    <script type="text/javascript" src="../../resources/js/bootstrap.js"></script>
    <script type="text/javascript" src="../../resources/js/angular.js"></script>
    <link rel="stylesheet" type="text/css" href="../../resources/css/common.css">
    <link rel="stylesheet" type="text/css" href="../../resources/css/main.css">
    <link rel="stylesheet" type="text/css" href="../../resources/css/bootstrap.css">
</head>
<body>

<div class="container">
    <table class="table">

        <c:forEach items="${books}" var="book">
            <tr class="row bookHover">
                <td class="col-lg-3">
                    <img src="${imagePath}${book.picture}">
                </td>
                <td class="col-lg-9">
                    <label style="color: blue"> ${book.bookName}</label><br>
                    <label style="color: red"><b>￥</b>${book.price}</label><br>

                    <div style="height: 70px">
                        <div class="introduction">
                            精彩推荐：${book.introduction}<br>
                        </div>
                    </div>
                    <div>
                        <button class="btn btn-success">加入购物车</button>
                        <button class="btn btn-info">加入购物车</button>
                    </div>
                </td>
                    <%--<td class="col-lg-3">${book.bookName}</td>--%>
                    <%--<td class="col-lg-3">${book.price}</td>--%>
                    <%--<td class="col-lg-3">${book.introduction}</td>--%>
                    <%--<td class="col-lg-3">${book.subCategoryName}</td>--%>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
